<template>
	<view class="">
		<view class="cont_top flex justify-between align-center">
			<view class="cont_title flex align-center">
				<!-- <view class="line"></view> -->
				{{ tit }}
			</view>
			<slot></slot>
			<text v-if="look" class="look_all" @click="lookAll">查看全部 ></text>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		tit: {
			type: String,
			default: ''
		},
		look: {
			type: Boolean,
			default: true
		}
	},
	data() {
		return {};
	},
	methods: {
		lookAll() {
			this.$emit('lookall');
		}
	}
};
</script>

<style lang="scss" scoped>
.cont_top {
	line-height: 42rpx;
	.line {
		border-left: 6rpx solid $color14;
		height: 30rpx;
		// width: 5rpx;
		margin-right: 15rpx;
	}
	.cont_title {
		font-size: 30rpx;
		font-weight: bold;
		color: $color3;
	}

	.look_all {
		font-size: 24rpx;
		color: $color3;
	}
}
</style>
